package com.devunion.salon.core.security;

import org.springframework.security.userdetails.UserDetails;
import org.springframework.security.GrantedAuthority;

/**
 * @author spetrakovsky
 *
 *
 * todo: review and implement methods.
 */
public class SalonUserDetails implements UserDetails {

    private String name;

    public SalonUserDetails(String name) {
        this.name = name;
    }

    public GrantedAuthority[] getAuthorities() {
        return new GrantedAuthority[0];
    }

    public String getPassword() {
        return "";
    }

    public String getUsername() {
        return name;
    }

    public boolean isAccountNonExpired() {
        return false;
    }

    public boolean isAccountNonLocked() {
        return false;
    }

    public boolean isCredentialsNonExpired() {
        return false;
    }

    public boolean isEnabled() {
        return false;
    }
}
